package com.gjp.service;

import com.gjp.service.impl.HelloServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by 郭金鹏 on 2018/1/27.
 */
@Service
@FeignClient(name="service-hi",fallback = HelloServiceFallback.class)
public interface HelloService {

    @RequestMapping("/hi")
    String hi(@RequestParam("name") String name);
}
